package com.five.community.mapper;

import com.five.community.bean.Village;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface VillageMapper {
    //查询小区表所有信息
    List<Village> selectAll() throws Exception;
    //根据名字查询ID
    long selectIdByName(String name) throws Exception;
    //根据小区名字查询小区的信息
    List<Village> selectByName(String name) throws Exception;
    //添加插入小区信息
    void insert(Village village) throws Exception;
    //根据id查询小区信息
    Village selectById(long id) throws Exception;
    //编辑更新小区信息
    void update(Village village) throws Exception;
    //删除小区信息根据ID
    void delete(long id) throws Exception;
}
